<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Rekap Berita Acara</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
			<div id="table-content">
                            <script>
                                function validateRekapBeritaAcara()
                                {
                                if (document.rekapBeritaAcara.jenisSidang.value == "0")
                                {
                                alert("Tahapan sidang harus diisi !");
                                document.rekapBeritaAcara.jenisSidang.focus();
                                return false;
                                }
                                else if (document.rekapBeritaAcara.status.value == "0")
                                {
                                alert("Status sidang harus diisi !");
                                document.rekapBeritaAcara.status.focus();
                                return false;
                                }
                                else if (document.rekapBeritaAcara.periode.value == "0")
                                {
                                alert("Periode harus diisi !");
                                document.rekapBeritaAcara.periode.focus();
                                return false;
                                }
                                }
                                </script>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                <form name="rekapBeritaAcara" id="mainform" action="SidangTAController?page=rekapBeritaAcara" onSubmit="return validateRekapBeritaAcara()" method="post">
                                    <tr>
                                        <th width="0" valign="top" >Tahapan Sidang </th>
                                        <td width="40" align="center" valign="middle">:</td>
                                        <td width="230"><select name="jenisSidang" class="styledselect_form_1">
                                        <option value="0">-- PILIH TAHAPAN SIDANG --</option>
                                        <option value="SIDANG PROPOSAL" <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}" >selected="selected"</c:if> >SIDANG PROPOSAL</option>
                                        <option value="SIDANG FINAL" <c:if test="${jenisSidang == 'SIDANG FINAL'}" >selected="selected"</c:if>>SIDANG FINAL</option>
                                        </select></td>
                                        
                                        <td width="20"></td>
                                    
                                        <th width="0" valign="top" align="right">Status Sidang </th>
                                        <td width="40" align="center" valign="middle">:</td>
                                        <td width="230"><select name="status" class="styledselect_form_1">
                                        <option value="0">-- PILIH STATUS --</option>
                                        <option value="BELUM" <c:if test="${status == 'BELUM'}" >selected="selected"</c:if> >BELUM</option>
                                        <option value="DITERIMA DENGAN REVISI" <c:if test="${status == 'DITERIMA DENGAN REVISI'}" >selected="selected"</c:if>>DITERIMA DENGAN REVISI</option>
                                        <option value="DITERIMA" <c:if test="${status == 'DITERIMA'}" >selected="selected"</c:if>>DITERIMA</option>
                                        <option value="LULUS" <c:if test="${status == 'LULUS'}" >selected="selected"</c:if>>LULUS</option>
                                        <option value="LULUS DENGAN REVISI" <c:if test="${status == 'LULUS DENGAN REVISI'}" >selected="selected"</c:if>>LULUS DENGAN REVISI</option>
                                        <option value="SIDANG ULANG" <c:if test="${status == 'SIDANG ULANG'}" >selected="selected"</c:if>>SIDANG ULANG</option>
                                        <option value="TUGAS AKHIR DIBATALKAN" <c:if test="${status == 'TUGAS AKHIR DIBATALKAN'}" >selected="selected"</c:if>>TUGAS AKHIR DIBATALKAN</option>
                                        </select></td>
                                        
                                        <td width="20"></td>
                                        
                                        <th width="0" valign="top" align="right">Periode</th>
                                        <td width="40" valign="middle" align="center">:</td>
                                        <td width="230">
                                            <select name="periode" class="styledselect_form_1">
                                            <option value="0">-- PILIH PERIODE --</option>
                                            <c:forEach items="${periodeYudisium}" var="periodeYudisium">
                                            <option value="${periodeYudisium.tglMulai},${periodeYudisium.tglAkhir},${periodeYudisium.periode}" 
                                            <c:if test='${(periodeYudisium.periode == periode)}'>selected="selected"</c:if>>${periodeYudisium.periode}</option>
                                            </c:forEach>
                                            </select>
                                        </td>
                                        <td></td>
                                        <td width="0"><input value="" class="form-tampilkan" type="submit" /></td>
                                    </tr>
                                </form>
                            </table>
                            <hr></hr>
                            <br></br>
                            <!--  start product-table ..................................................................................... -->
                            
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                            <c:if test="${jenisSidang == null}">
                            <tr>
                                <th width="50" class="table-header-repeat line-left"><a href="">No</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">NRP</a></th>
                                <th width="50" class="table-header-repeat line-left "><a href="">lab</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">Tanggal Sidang</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Penguji 1</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Penguji 2</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">Status Sidang</a></th>
                                <th width="50" class="table-header-repeat line-left"><a href="">Pilihan</a></th>
                            </tr>   
                            </c:if>
                            <% int i = 1;%>
                            <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}">
                            <tr>
                                    <th width="50" class="table-header-repeat line-left"><a href="">No</a></th>
                                    <th width="100" class="table-header-repeat line-left "><a href="">NRP</a></th>
                                    <th width="50" class="table-header-repeat line-left "><a href="">lab</a></th>
                                    <th width="100" class="table-header-repeat line-left "><a href="">Tanggal Sidang</a></th>
                                    <th width="180" class="table-header-repeat line-left "><a href="">Penguji 1</a></th>
                                    <th width="180" class="table-header-repeat line-left "><a href="">Penguji 2</a></th>
                                    <th width="100" class="table-header-repeat line-left "><a href="">Status Sidang</a></th>
                                    <th width="50" class="table-header-repeat line-left"><a href="">Detail</a></th>
                                    <c:if test="${status == 'TUGAS AKHIR DIBATALKAN'}">
                                    <th width="150" class="table-header-repeat line-left"><a href="">Status TA</a></th>
                                    </c:if>
                            </tr>
                            <c:if test="${empty rekapBeritaAcara}">
                                    <tr>
                                        <td colspan="9" align="center" >Maaf, Data rekap Tidak Ditemukan</td>
                                    </tr>
                            </c:if>
                            
                            <c:forEach items="${rekapBeritaAcara}" var="rekapBeritaAcara" >
                            <tr>            
                                <td align="center"><% out.print(i); i++; %></td>
                                <td>${rekapBeritaAcara.ta.user.idUser}</td>
                                <td>${rekapBeritaAcara.ta.namaLab}</td>
                                <td>
                                    <c:if test="${(rekapBeritaAcara.tglSidang == null)}">
                                    <font color="red">BELUM DITENTUKAN</font>
                                    </c:if>
                                    ${rekapBeritaAcara.tglSidang}
                                </td>
                                <td>
                                <c:forEach items="${listPenguji1}" var="listPenguji1">
                                <c:if test="${(listPenguji1.user.idUser == rekapBeritaAcara.penguji1)}">
                                    ${listPenguji1.user.namaUser}
                                </c:if>
                                </c:forEach>
                                </td>
                                <td>
                                <c:if test="${(rekapBeritaAcara.penguji2 == '0')}">
                                    <font color="red">-</font>
                                </c:if>
                                <c:forEach items="${listPenguji2}" var="listPenguji2">
                                <c:if test="${(listPenguji2.user.idUser == rekapBeritaAcara.penguji2)}">
                                    ${listPenguji2.user.namaUser}
                                </c:if>
                                </c:forEach>
                                </td>
                                <td>${rekapBeritaAcara.statusSidang}</td>
                                <td><a href="SidangTAController?page=detailRekapBeritaAcara&&idTA=${rekapBeritaAcara.ta.idTA}&&idSidang=${rekapBeritaAcara.idSidang}&&idUser=${rekapBeritaAcara.ta.user.idUser}&&jenisSidang=${jenisSidang}" title="Detail" class="icon-3 info-tooltip"></a></td>
                                <c:if test="${status == 'TUGAS AKHIR DIBATALKAN'}">
                                <td align="center">
                                    <c:if test="${rekapBeritaAcara.ta.statusTA == '1'}">
                                    <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="1"></input>
                                        <input value="" class="form-aktif" type="submit"></input>   
                                    </form>
                                    <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="0"></input>
                                        <input value="" class="form-nonaktifDisable" type="submit"></input>   
                                    </form>
                                    </c:if>
                                    <c:if test="${rekapBeritaAcara.ta.statusTA == '0'}">
                                    <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="1"></input>
                                        <input value="" class="form-aktifDisable" type="submit"></input>   
                                    </form>
                                    <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="0"></input>
                                        <input value="" class="form-nonaktif" type="submit"></input>   
                                    </form>
                                    </c:if>
                                </td>
                                </c:if>
                            </tr>
                            </c:forEach>
                            </c:if>
                            <c:if test="${jenisSidang == 'SIDANG FINAL'}">
                            <tr>
                                    <th width="50" class="table-header-repeat line-left"><a href="">No</a></th>
                                    <th width="50" class="table-header-repeat line-left "><a href="">NRP</a></th>
                                    <th width="50" class="table-header-repeat line-left "><a href="">lab</a></th>
                                    <th width="100" class="table-header-repeat line-left "><a href="">Tanggal Sidang</a></th>
                                    <th width="50" class="table-header-repeat line-left "><a href="">Nilai Angka </a></th>
                                    <th width="50" class="table-header-repeat line-left "><a href="">Nilai Huruf</a></th>
                                    <th width="100" class="table-header-repeat line-left "><a href="">Status</a></th>
                                    <th width="50" class="table-header-repeat line-left"><a href="">Detail</a></th>
                                    <c:if test="${status == 'TUGAS AKHIR DIBATALKAN'}">
                                    <th width="150" class="table-header-repeat line-left "><a href="">Status TA</a></th>
                                    </c:if> 
                            </tr>
                            <c:if test="${empty rekapBeritaAcara}">
                            <tr>
                                <td colspan="9" align="center" >Maaf, Data rekap Tidak Ditemukan</td>
                            </tr>
                            </c:if>
                            <c:forEach items="${rekapBeritaAcara}" var="rekapBeritaAcara">
                            <tr>                                   
                                <td align="center"><% out.print(i); i++; %></td>
                                <td>${rekapBeritaAcara.ta.user.idUser}</td>
                                <td>${rekapBeritaAcara.ta.namaLab}</td>
                                <td>
                                    <c:if test="${(rekapBeritaAcara.tglSidang == null)}">
                                        <font color="red">BELUM DITENTUKAN</font>
                                    </c:if>
                                    ${rekapBeritaAcara.tglSidang}
                                </td>
                                <td>${rekapBeritaAcara.nilaiAngka}</td>
                                <td>${rekapBeritaAcara.nilaiHuruf}</td>
                                <td>${rekapBeritaAcara.statusSidang}</td>
                                <td><a href="SidangTAController?page=detailRekapBeritaAcara&&idTA=${rekapBeritaAcara.ta.idTA}&&idSidang=${rekapBeritaAcara.idSidang}&&idUser=${rekapBeritaAcara.ta.user.idUser}&&jenisSidang=${jenisSidang}" title="Detail" class="icon-3 info-tooltip"></a></td>
                                <c:if test="${status == 'TUGAS AKHIR DIBATALKAN'}">
                                <td align="center">
                                    <c:if test="${rekapBeritaAcara.ta.statusTA == '1'}">
                                    <form action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="1"></input>
                                        <input value="" class="form-aktif" type="submit"></input>   
                                    </form>
                                    <form action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="0"></input>
                                        <input value="" class="form-nonaktifDisable" type="submit"></input>   
                                    </form>
                                    </c:if>
                                    <c:if test="${rekapBeritaAcara.ta.statusTA == '0'}">
                                        <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="1"></input>
                                        <input value="" class="form-aktifDisable" type="submit"></input>   
                                    </form>
                                    <form id="mainform" action="SidangTAController?page=updateStatusTA" method="post">
                                        <input type="hidden" name="idTA" value="${rekapBeritaAcara.ta.idTA}"></input>
                                        <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
                                        <input type="hidden" name="periode" value ="${periodeGet}"></input>
                                        <input type="hidden" name="statusSidang" value ="${status}"></input>
                                        <input type="hidden" name="statusTA" value="0"></input>
                                        <input value="" class="form-nonaktif" type="submit"></input>   
                                    </form>
                                    </c:if>                                   
                                </td>
                                </c:if>
                            </tr>
                            </c:forEach>
                            </c:if>
                            </table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			<!--  end paging................ -->			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>